import request from '@/utils/request'

/* 菜单树*/
export function selectMenuTree(data) {
  return request({
    url: '/system/menu/selectMenuTree',
    method: 'post',
    data: data
  })
}

/* 新增菜单*/
export function saveMenu(data) {
  return request({
    url: '/system/menu/saveMenu',
    method: 'post',
    data: data
  })
}

/* 修改菜单*/
export function updateMenu(data) {
  return request({
    url: '/system/menu/updateMenuById',
    method: 'post',
    data: data
  })
}

/* 根据id查询菜单*/
export function selectMenuById(data) {
  return request({
    url: '/system/menu/selectMenuById/' + data,
    method: 'post'
  })
}

/* 删除菜单*/
export function deleteMenu(data) {
  return request({
    url: '/system/menu/deleteMenu',
    method: 'post',
    data: data
  })
}
